import http from '@/utils/request'

const apiBefore = '/web/um'

export const getStarted = {
  saveBasicApi: params => {
    return http.put(`${apiBefore}/sys/tenant/update`, params)
  },
  getStartedListApi: params => {
    return http.get(`${apiBefore}/authorize/getstart/list`, { params })
  },
  updateStepsStatusApi: params => {
    return http.post(`${apiBefore}/authorize/getstart/update`, params)
  },
  getAddAdminUserListApi: params => {
    return http.get(`${apiBefore}/sys/user/listBySuperTenant`, { params })
  },
  updateTenantAdminPermissionsApi: params => {
    return http.put(`${apiBefore}/sys/user/updateSuperTenant`, params)
  },
  getMspInfoApi: () => {
    return http.get(`${apiBefore}/sys/software/list`)
  },
  enableSave(params) {
    return http.post(`${apiBefore}/sys/tenant/setting/save`, params)
  },
  getEnableDetail(params) {
    return http.get(`${apiBefore}/sys/tenant/setting/detail`, { params })
  }
}
